package fileoperator;

import java.io.File;
import java.util.Arrays;
import java.util.List;

public class FilePick {
	public static void main(String[] args) {
		String path = "./src/";
		for(File f:pickFiles(path)) {
			System.out.println(f.getName());
		}
		
	}

	private static List<File> pickFiles(String path) {
		File file = new File(path);
		return Arrays.asList(file.listFiles(f -> f.isDirectory()));//过滤文件夹
	}
}
